<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>医院后台管理</title>
		<link rel="stylesheet" type="text/css" href="../../admin/layui-v2.4.5/layui/css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../admin/css/admin.css"/>
		<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
	</head>
	<body>
		<div class="main-layout" id='main-layout'>
			<!--侧边栏-->
			<div class="main-layout-side">
				<!--<div class="m-logo">
				</div>-->

				<!--<div class="layui-logo" lay-href="">
					&lt;!&ndash;<span>{{ layui.setter.name || 'layuiAdmin' }}</span>&ndash;&gt;
					<span>Hospital</span>
				</div>-->
				<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
				  <li class="layui-nav-item layui-nav-itemed">
				    <a href="javascript:;" data-url="welcome.html" data-id='1' data-text="主页"><i class="iconfont">&#xe607;</i>主页</a>
				  </li>
					<li class="layui-nav-item">
						<a href="javascript:;"><i class="iconfont">&#xe600;</i>药房管理</a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" data-url="med-console.html" data-id='2' data-text="控制台"><span class="l-line"></span>控制台</a></dd>
							<!--<dd><a href="javascript:;" data-url="med-manage.html" data-id='3' data-text="药品管理"><span class="l-line"></span>药品管理</a></dd>
							<dd><a href="javascript:;" data-url="med-in.html" data-id='4' data-text="药品入库"><span class="l-line"></span>药品入库</a></dd>
							<dd><a href="javascript:;" data-url="med-sale.html" data-id='20' data-text="药品出库"><span class="l-line"></span>药品出库</a></dd>
							<dd><a href="javascript:;" data-url="med-prepare.html" data-id='5' data-text="备用"><span class="l-line"></span>备用</a></dd>-->
						</dl>
					</li>
				  <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe608;</i>门诊管理</a>
				    <dl class="layui-nav-child">
						<!--<dd><a href="javascript:;" data-url="dia-console.html" data-id='6' data-text="控制台"><span class="l-line"></span>控制台</a></dd>-->
						<!--<dd><a href="javascript:;" data-url="dia-appointment.html" data-id='7' data-text="查询"><span class="l-line"></span>查询</a></dd>-->
				      <!--<dd><a href="javascript:;" data-url="dia-register.html" data-id='8' data-text="挂号"><span class="l-line"></span>挂号</a></dd>-->
				      <!--<dd><a href="javascript:;" data-url="dia-diagnosis.html" data-id='9' data-text="就诊"><span class="l-line"></span>就诊</a></dd>-->
						<dd><a href="javascript:;" data-url="dia-sure.html" data-id='10' data-text="门诊权限认证"><span class="l-line"></span>门诊权限认证</a></dd>
				    </dl>
				  </li>
				  <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe604;</i>体检管理</a>
					  <dl class="layui-nav-child">
						  <!--<dd><a href="javascript:;" data-url="phy-register.html" data-id='11' data-text="登记"><span class="l-line"></span>登记</a></dd>-->
						  <!--<dd><a href="javascript:;" data-url="phy-examination.html" data-id='12' data-text="检查"><span class="l-line"></span>检查</a></dd>-->
						  <!--<dd><a href="javascript:;" data-url="phy-result.html" data-id='13' data-text="结果"><span class="l-line"></span>结果</a></dd>-->
						  <dd><a href="javascript:;" data-url="phy-prepare.html" data-id='14' data-text="体检控制台"><span class="l-line"></span>体检控制台</a></dd>
					  </dl>
				  </li>
				   <li class="layui-nav-item" id="renyuan">
				    <a href="javascript:;"><i class="iconfont">&#xe60c;</i>后台管理</a>
					   <dl class="layui-nav-child">
						   <!--<dd><a href="javascript:;" data-url="back-staff.html" data-id='15' data-text="人员管理"><span class="l-line"></span>人员管理</a></dd>-->
						   <!--<dd><a href="javascript:;" data-url="back-form.html" data-id='16' data-text="报表生成"><span class="l-line"></span>报表生成</a></dd>-->
						   <!--<dd><a href="javascript:;" data-url="back-duty.html" data-id='17' data-text="排班"><span class="l-line"></span>排班</a></dd>-->
						   <dd><a id="a" href="javascript:;" data-url="back-prepare.html" data-id='18' data-text="后台控制"><span class="l-line"></span>后台控制</a></dd>
					   </dl>
				  </li>
				  <!--<li class="layui-nav-item">-->
				  	<!--<a href="javascript:;" data-url="system.html" data-id='19' data-text="系统设置"><i class="iconfont">&#xe60b;</i>系统设置</a>-->
				  <!--</li>-->
				</ul>
			</div>
			<!--右侧内容-->
			<div class="main-layout-container">
				<!--头部-->
				<div class="main-layout-header">
					<div class="menu-btn" id="hideBtn">
						<a href="javascript:;">
							<span class="iconfont">&#xe60e;</span>
						</a>
					</div>
					<ul class="layui-nav" lay-filter="rightNav">
					  <!--<li class="layui-nav-item"><a href="javascript:;" data-url="email.html" data-id='4' data-text="邮件系统"><i class="iconfont">&#xe603;</i></a></li>-->
					  <!--<li class="layui-nav-item">-->
					    <!--<a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息">超级管理员</a>-->
					  <!--</li>-->
					  <li id="exit" class="layui-nav-item"><a href="javascript:;">退出</a></li>
					</ul>
				</div>
				<!--主体内容-->
				<div class="main-layout-body">
					<!--tab 切换-->
					<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
					  <ul class="layui-tab-title">
					    <li class="layui-this welcome">主页</li>
					  </ul>
					  <div class="layui-tab-content">
					    <div class="layui-tab-item layui-show" style="background: #f5f5f5;">
					    	<!--1-->
					    	<iframe src="welcome.html" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
					    	<!--1end-->
					    </div>
					  </div>
					</div>
				</div>
			</div>
			<!--遮罩-->
			<div class="main-mask">
				
			</div>
		</div>
		<script type="text/javascript">
			var scope={
				link:'./welcome.html'
			}
		</script>

		<script src="../../admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../admin/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../admin/js/main.js" type="text/javascript" charset="utf-8"></script>
		<script>


                $(document).on('click', '#exit', function () {
                    location.href = "../html/login.html"
                })

                $(document).on('click', '#renyuan', function () {

                        $.ajax({
                            url: '/hospital/userPower',
                            dataType: 'json',
                            type: 'post',
                            contentType: "application/json; charset=utf-8",
                            success: function (data) {
                                if (data.code==1){
                                   $('#a').attr("data-url","med-money.html");
								}
                            }

                        })


                })

		</script>
		
	</body>
</html>
